//
//  TTBasicCommon.m
//  Tint
//
//  Created by Kevin Wu on 2/28/13.
//  Copyright (c) 2013 Telligenty. All rights reserved.
//

#import "TTBasicCommon.h"
#import "TTSettings.h"


#pragma mark - Launch times

BOOL TTIsFirstLaunch()
{
    return ( TTLaunchTimes() == 1 );
}

NSUInteger TTLaunchTimes()
{
    return [[TTSettings sharedObject] intForKey:@"TTLaunchTimesKey"];
}

void TTIncreaseLaunchTimes()
{
    int times = [[TTSettings sharedObject] intForKey:@"TTLaunchTimesKey"];
    [[TTSettings sharedObject] setInt:times+1 forKey:@"TTLaunchTimesKey"];
    [[TTSettings sharedObject] synchronize];
}
